@model ShivamEMR.Model.Domain.ContactsDomain.CultureAndRegion

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Culture)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Culture)
    @Html.ValidationMessageFor(model => model.Culture)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Region)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Region)
    @Html.ValidationMessageFor(model => model.Region)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    Country
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.CountryID, ((IEnumerable<ShivamEMR.Model.Domain.ContactsDomain.Country>)ViewBag.PossibleCountries).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.CountryID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.CountryID)
</div>
